//
//  TieBaTableView.h
//  1gene
//
//  Created by 1jiyin on 16/3/11.
//  Copyright © 2016年 1jiyin. All rights reserved.
//
#import "TieBaModel.h"
@protocol TieBaTableViewDelegate <NSObject>
/*
 *放大图片
 */
-(void)bigImage:(NSInteger)currentIndex AndImageArrays:(NSArray *)imageArrays;
/*
 *进入帖子详情界面
 */
-(void)gotoXiangQingViewController:(NSInteger)index;
/*
 *功能选择
 */
-(void)chooseFunction:(NSInteger)index;
/*
 *进入用户详情界面
 */
-(void)gotoMyAttentionViewController:(NSString *)userId;

@end
#import <UIKit/UIKit.h>

@interface TieBaTableView : UITableView<UITableViewDataSource,UITableViewDelegate,UIScrollViewDelegate>
/*
 *数据源
 */
@property(nonatomic,copy)NSMutableArray *dataArray;
/*
 *模型数据源
 */
@property(nonatomic,copy)NSArray *arr;
/*
 *自定义代理方法
 */
@property(nonatomic,assign)id <TieBaTableViewDelegate>imgDelegate;

/*
 *是否隐藏头视图 0否 1是
 */
@property(nonatomic,assign)BOOL hideHeaderView;
-(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style hideheaderView:(BOOL)hide;


//点赞
@property(nonatomic,copy)void(^zan)(NSInteger state);

@property(nonatomic,copy)NSMutableArray *tieziDataArray;


-(void)reloadTableView;
@end
